import React, { PropsWithChildren } from 'react'
import { useLaunch } from '@tarojs/taro'
import { AuthProvider } from './contexts/AuthContext'
import './app.scss'

function App({ children }: PropsWithChildren<any>) {
  useLaunch(() => {
    console.log('App launched.')
  })

  // 用 AuthProvider 包裹 children
  return <AuthProvider>{children}</AuthProvider>
}

export default App 